﻿using System.Runtime.Serialization;
using TfsCloudDeploy.Deployment.Service.DataContracts.Interfaces;

namespace TfsCloudDeploy.Deployment.Service.DataContracts
{
    [KnownType(typeof(IDeploymentResponseV1))]
    [DataContract(Name = "DeploymentResponse", Namespace = "http://tfsclouddeploy.codeplex.com/2012/08/DeploymentResponse")]
    public class DeploymentResponseV1 : IDeploymentResponseV1, IExtensibleDataObject
    {
        [DataMember(Name = "RawBuildOutput", IsRequired = true, Order = 0)]
        public string BuildOutput { get; set; }

        [DataMember(Name = "IsSuccessful", IsRequired = true, Order = 1)]
        public bool IsSuccessful { get; set; }

        public ExtensionDataObject ExtensionData { get; set; }
    }
}
